<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>
            商品发布
        
        </h2>
    </div>
     <div class="tab-wrap">
	<ul class="tab-nav nav">
			<li data-tab="tab1" class="current"><a href="#">基础</a></li>
                        <li data-tab="tab2" ><a href="#">扩展</a></li>
	</ul>
         <div class="tab-content">
             <form id="form" action="{:U('update')}" method="post" class="form-horizontal">
                 <div id="tab1" class="tab-pane tab1 in">
                 ddddd
                 </div>
                  <div id="tab2" class="tab-pane tab2">
                 ddddd2222
                 </div>
                 <div class="form-item cf">
			<button class="btn submit-btn ajax-post hidden" id="submit" type="submit" target-form="form-horizontal" autocomplete="off">确认发布商品</button>
                </div>
             </form>
         </div>
     </div>
</block>

<block name="script">
<script type="text/javascript">
    $(document).ready(function(){
       $(".tab-nav > li").click(function(){
           var tab =$(this).data('tab');
           $(".tab-nav > li").removeClass('current');
           $(this).addClass('current');
           $(".tab-pane").removeClass('in');
           var obj=$('#'+tab);
           obj.addClass('in');
       })
    });
</script>
</block>